package org.gten.gegedexin.IMAP;

import java.io.File;

/**用于存储邮件的摘要信息，正文和主题*/
public class MailDigest {
    private String body;
    private String subject;
    private File attachment;

    public MailDigest(String bdy, String sjt, File atmt) {
        body = bdy;
        subject = sjt;
        attachment = atmt;
    }

    public String getBody () {
        return body;
    }

    public String getSubject() {
        return subject;
    }

    public File getAttachment() {
        return attachment;
    }

    @Override
    public String toString() {
        return "subject:" + subject + "\nbody:" + body + "\nattachment:" + attachment;
    }
}

